package Core.Map;

import java.util.LinkedList;
import java.util.List;

import Core.Character;

public class Tile
{
	private int _x;
	private int _y;
	private List<Character> _characters;
	
	public Tile(int x, int y)
	{
		this._characters = new LinkedList<Character>();
		
		this.setX(x);
		this.setY(y);
	}
	
	public int getX()
	{
		return this._x;
	}
	
	public void setX(int x)
	{
		this._x = x;
	}
	
	public int getY()
	{
		return this._y;
	}
	
	public void setY(int y)
	{
		this._y = y;
	}
	
	public Tile clone()
	{
		Tile clone = new Tile(this.getX(), this.getY());
		
		return clone;
	}

	public boolean isSimilarTo(Tile other)
	{
		boolean isSimilar = true;
		
		return isSimilar;
	}
	
	public void addCharacter(Character character)
	{
		this._characters.add(character);
	}

	public boolean containsCharacter(Character character)
	{
		return this._characters.contains(character);
	}

	public void removeCharacter(Character character)
	{
		this._characters.remove(character);
	}
}